package com.demo.server.servce;

import com.demo.server.pojo.Message;

import java.io.IOException;
import java.nio.channels.Selector;
import java.nio.channels.SocketChannel;

/**
 * @author:谢君臣
 * @Date:2021/7/26-19:32
 * @version:1.0
 * @function:
 */
public interface MessagePush {
    void push(Message message, SocketChannel channel, Selector selector) throws IOException;
    void pushToALL(Message message, SocketChannel channel, Selector selector) throws IOException;
}
